package com.justnow.offer;

import java.util.Scanner;

/**
 * @author justnow
 * Created on 2020-09-07
 * Description
 */
public class Beike02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        String str = scanner.nextLine();
        int result = n;
        int max = -1;
        for (int i = 1; i <= n / 2; i++) {
            int orignleft = 0, orignright = i;
            int newleft = i, newright = i + i;
            String str1 = str.substring(orignleft, orignright);
            String str2 = str.substring(newleft, newright);
            if (str1.equals(str2)) {
                max = i;
            }
        }

        if (max != -1) {
            result = n - 2 * max + max + 1;
        } else {
            result = n;
        }
        System.out.println(result);
    }
}
